import React ,{useState , useEffect} from 'react'
import co from 'co'
export default (props) => {
    console.log(props)
    let [counter , setCounter] = useState(0)
    //co(function *(){})
    return (
        <div>
            {counter}

            
            <button onClick={()=> setCounter(counter+1)}> click </button>
            {props.children}
        </div>
    )
}
    